ky 6 years ago
parent ecffab39fe
commit 8c90f46a14

@ -64,4 +64,13 @@ public class MiniCustomController {
return ResultBuilder.withPayload(jsonObject).build();
}
@PostMapping("/logoutCustom")
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
@ApiOperation(value = "注销公司", notes = "注销公司")
public Result logoutCustom(String customId) {
customService.logoutCustom(customId);
return ResultBuilder.success().build();
}
}

@ -95,9 +95,9 @@ public class PcCustomController {
@PostMapping("/enableCustom")
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
@ApiOperation(value = "认证公司", notes = "认证公司")
public Result enableCustom(String customId, String businessLicense, String socialCreditCode,Long serviceBeginDate,Long serviceEndDate) {
public Result enableCustom(String customId, String businessLicense, String socialCreditCode,Long serviceBeginDate,Long serviceEndDate,Long buildDate) {
customService.enableCustom(customId,businessLicense,socialCreditCode,serviceBeginDate,serviceEndDate);
customService.enableCustom(customId,businessLicense,socialCreditCode,serviceBeginDate,serviceEndDate,buildDate);
return ResultBuilder.success().build();
}

@ -135,4 +135,6 @@ red yellow blue purple
private String miniUserId;
@ApiModelProperty(value = "园区")
private String park;
@ApiModelProperty(value = "成立日期")
private Date buildDate;
}

@ -35,6 +35,10 @@ public class Invoice implements Serializable {
@TableField(exist = false)
private String customName;
@ApiModelProperty(hidden = true)
@TableField(exist = false)
private String customType;
@ApiModelProperty(value = "开票金额")
private BigDecimal money;

@ -278,7 +278,7 @@ public class CustomServiceImpl extends ServiceImpl<CustomMapper, Custom> impleme
*
* @param customId
*/
public void enableCustom(String customId, String businessLicense, String socialCreditCode,Long serviceBeginDate,Long serviceEndDate){
public void enableCustom(String customId, String businessLicense, String socialCreditCode,Long serviceBeginDate,Long serviceEndDate,Long buildDate){
Custom custom = new Custom();
custom.setId(customId);
@ -288,6 +288,7 @@ public class CustomServiceImpl extends ServiceImpl<CustomMapper, Custom> impleme
custom.setStatusCode("enable");
custom.setServiceBeginDate(new Date(serviceBeginDate));
custom.setServiceEndDate(new Date(serviceEndDate));
custom.setBuildDate(new Date(buildDate));
customMapper.updateById(custom);
miniUserService.certified(custom.getMiniUserId());

@ -72,7 +72,8 @@ public class InvoiceServiceImpl extends ServiceImpl<InvoiceMapper, Invoice> impl
}
List<Invoice> invoiceList = invoiceMapper.selectList(customId);
for(Invoice invoice:invoiceList){
invoice.setCustomName(customs.getJSONObject(i).getString("companyName"));
invoice.setCustomName(customs.getJSONObject(i).getJSONObject("custom").getString("companyName"));
invoice.setCustomType(customs.getJSONObject(i).getJSONObject("custom").getString("registerType"));
String invoiceHeaderId = invoice.getInvoiceHeaderId();
InvoiceHeader invoiceHeader = invoiceHeaderMapper.selectById(invoiceHeaderId);
invoice.setInvoiceHeaderName(invoiceHeader.getCompanyName());

Loading…
Cancel
Save