|
@@ -216,10 +216,10 @@ public class NewCmShopController extends BaseController {
|
|
|
Date receipttime = formatter.parse(receiptDate);
|
|
|
//如果没有缴费记录
|
|
|
if(null==cmDiscern){
|
|
|
- //缴纳时间加一年==到期时间
|
|
|
- calendar.setTime(receipttime);
|
|
|
- calendar.add(Calendar.YEAR, 1);
|
|
|
- dateStrings= formatter.format(calendar.getTime());
|
|
|
+ //缴纳时间加一年==到期时间
|
|
|
+ calendar.setTime(receipttime);
|
|
|
+ calendar.add(Calendar.YEAR, 1);
|
|
|
+ dateStrings= formatter.format(calendar.getTime());
|
|
|
calendars.setTime(receipttime);
|
|
|
calendars.add(Calendar.DATE, 1);
|
|
|
validityDate= formatter.format(calendars.getTime());
|
|
@@ -231,7 +231,7 @@ public class NewCmShopController extends BaseController {
|
|
|
logger.info("dateStrings>>>>>"+dateStrings);
|
|
|
newCmShopService.cmreceipt(cmDiscernReceipt);
|
|
|
}
|
|
|
- if(null!=cmDiscern) {
|
|
|
+ if(null!=cmDiscern && cmDiscern.getReceStatct()!=2 && cmDiscern.getReceStatct()!=1) {
|
|
|
Integer count=newCmShopService.cmrectCount(discernReceipt.getList().get(i).getShopID());
|
|
|
System.out.println("count>>"+count+"size>>"+discernReceipt.getList().size());
|
|
|
String receipt=cmDiscern.getExpirationDate();
|
|
@@ -246,22 +246,22 @@ public class NewCmShopController extends BaseController {
|
|
|
calendar.add(Calendar.YEAR, 1);
|
|
|
dateStrings= formatter.format(calendar.getTime());
|
|
|
if(!cmDiscern.getReceiptID().equals(discernReceipt.getList().get(i).getReceiptID())){
|
|
|
- if(count != discernReceipt.getList().size()){
|
|
|
- num = receipt.compareTo(dateString);
|
|
|
- logger.info(">>>>>>"+num);
|
|
|
- if(num>0){
|
|
|
- cmDiscernReceipt.setReceiptID(discernReceipt.getList().get(i).getReceiptID());
|
|
|
- cmDiscernReceipt.setValidityDate(cmDiscern.getExpirationDate());
|
|
|
- cmDiscernReceipt.setExpirationDate(dateStrings);
|
|
|
- newCmShopService.cmreceipt(cmDiscernReceipt);
|
|
|
- } else {
|
|
|
- cmDiscernReceipt.setReceiptID(discernReceipt.getList().get(i).getReceiptID());
|
|
|
- cmDiscernReceipt.setValidityDate(validityDate);
|
|
|
- cmDiscernReceipt.setExpirationDate(dateStrings);
|
|
|
- newCmShopService.cmreceipt(cmDiscernReceipt);
|
|
|
+ if(count != discernReceipt.getList().size()){
|
|
|
+ num = receipt.compareTo(dateString);
|
|
|
+ logger.info(">>>>>>"+num);
|
|
|
+ if(num>0){
|
|
|
+ cmDiscernReceipt.setReceiptID(discernReceipt.getList().get(i).getReceiptID());
|
|
|
+ cmDiscernReceipt.setValidityDate(cmDiscern.getExpirationDate());
|
|
|
+ cmDiscernReceipt.setExpirationDate(dateStrings);
|
|
|
+ newCmShopService.cmreceipt(cmDiscernReceipt);
|
|
|
+ } else {
|
|
|
+ cmDiscernReceipt.setReceiptID(discernReceipt.getList().get(i).getReceiptID());
|
|
|
+ cmDiscernReceipt.setValidityDate(validityDate);
|
|
|
+ cmDiscernReceipt.setExpirationDate(dateStrings);
|
|
|
+ newCmShopService.cmreceipt(cmDiscernReceipt);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
-}
|
|
|
}
|
|
|
|
|
|
cmDiscernReceipt.setReceiptID(discernReceipt.getList().get(i).getReceiptID());
|
|
@@ -270,7 +270,7 @@ public class NewCmShopController extends BaseController {
|
|
|
System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"+"1:"+date+"2:"+dateStrings+"3:"+dateString);
|
|
|
}
|
|
|
Page<CmDiscernReceipt>discernReceip = newCmShopService.maintenanceList(new Page<CmDiscernReceipt>(request, response, 20),cmDiscernReceipt);
|
|
|
- model.addAttribute("CmDiscernReceipt", cmDiscernReceipt);
|
|
|
+ model.addAttribute("CmDiscernReceipt", cmDiscernReceipt);
|
|
|
model.addAttribute("discernReceipt", discernReceip);
|
|
|
return "modules/user/maintenanceList";
|
|
|
}
|
|
@@ -285,8 +285,9 @@ public class NewCmShopController extends BaseController {
|
|
|
|
|
|
//获取操作时间
|
|
|
sysLog.setOperationtime(new Date());
|
|
|
+ newCmShopService.addthelast(cmDiscernReceipt);
|
|
|
+ cmDiscernReceipt.setReceiptID(newCmShopService.therectip().toString());
|
|
|
newCmShopService.cmreceipt(cmDiscernReceipt);
|
|
|
-
|
|
|
//获取操作员
|
|
|
SystemAuthorizingRealm.Principal principal = UserUtils.getPrincipal();
|
|
|
System.out.println("操作员" + principal.getName());
|
|
@@ -399,7 +400,7 @@ public class NewCmShopController extends BaseController {
|
|
|
sysLog.setContact(newCmShops.getLinkMan());
|
|
|
sysLog.setInstitutionName(newCmShops.getName());
|
|
|
sysLog.setOperationtype("审核");
|
|
|
- sysLog.setActioncontent("审核失败");
|
|
|
+ sysLog.setActioncontent("审核失败");
|
|
|
if (!"".equals(sysLog.getActioncontent())) {
|
|
|
if (sysLog.getInstitutionName() != null && sysLog.getContact() != null) {
|
|
|
int i = cmOperationalLogService.insert(sysLog);
|
|
@@ -904,7 +905,7 @@ public class NewCmShopController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (!newCmShop.getBusinessScope().equals(newCmShops.getBusinessScope())) {
|
|
|
+ if (!newCmShop.getBusinessScope().equals(newCmShops.getBusinessScope())) {
|
|
|
list.add("修改了医疗类型");
|
|
|
}
|
|
|
|
|
@@ -921,7 +922,7 @@ public class NewCmShopController extends BaseController {
|
|
|
list.add("新增了微信公众号");
|
|
|
}
|
|
|
}
|
|
|
- if (!newCmShop.getWxOfficialAccount().equals(newCmShops.getWxOfficialAccount())) {
|
|
|
+ if (!newCmShop.getWxOfficialAccount().equals(newCmShops.getWxOfficialAccount())) {
|
|
|
list.add("修改了微信公众号");
|
|
|
}
|
|
|
|
|
@@ -938,7 +939,7 @@ public class NewCmShopController extends BaseController {
|
|
|
list.add("新增了营业执照编号");
|
|
|
}
|
|
|
}
|
|
|
- if (!newCmShop.getSocialCreditCode().equals(newCmShops.getSocialCreditCode())) {
|
|
|
+ if (!newCmShop.getSocialCreditCode().equals(newCmShops.getSocialCreditCode())) {
|
|
|
list.add("修改了营业执照编号");
|
|
|
}
|
|
|
|