| | |
| | | ltkjExamJcbgd.setYxbx(ltkjExamJcsqd.getJgzt()); |
| | | ltkjExamJcbgd.setYxzd(ltkjExamJcsqd.getJgzt()); |
| | | ltkjExamJcsqd.setCreateTime(new Date()); |
| | | ltkjExamJcbgdService.deletedLtkjJcbgdByTjhandtmh(ltkjExamJcsqd.getTjh(),ltkjExamJcsqd.getTmh()); |
| | | ltkjExamJcbgdService.deletedLtkjJcbgdByTjhAndTmh(ltkjExamJcsqd.getTjh()); |
| | | boolean save2 = ltkjExamJcbgdService.save(ltkjExamJcbgd); |
| | | if (save1 && save2) { |
| | | try { |
| | |
| | | if (null != cusIds && !cusIds.isEmpty()) { |
| | | ExecutorService threadPools = Executors.newFixedThreadPool(cusIds.size()); |
| | | for (String cusId : cusIds) { |
| | | threadPools.execute(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | |
| | | // threadPools.execute(new Runnable() { |
| | | // @Override |
| | | // public void run() { |
| | | try { |
| | | getAjaxResults(cusId); |
| | | } catch (Exception e) { |
| | | |
| | | } |
| | | }); |
| | | // } |
| | | // }); |
| | | } |
| | | LambdaQueryWrapper<TjCustomer> wq = new LambdaQueryWrapper<>(); |
| | | wq.in(TjCustomer::getCusIdcard, cusIds); |
| | |
| | | map.put("errtjh",errTjh); |
| | | return AjaxResult.success("以上人员签到失败",map); |
| | | } |
| | | return AjaxResult.success(); |
| | | return AjaxResult.error(); |
| | | } |
| | | // TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | return AjaxResult.error(); |
| | |
| | | tjReservationService.updateById(tjReservation); |
| | | // return AjaxResult.error("对不起您的预约已超时请重新预约"); |
| | | }*/ |
| | | try { |
| | | LambdaQueryWrapper<TjCustomer> qw = new LambdaQueryWrapper<>(); |
| | | qw.eq(TjCustomer::getCusIdcard, cusIdcard); |
| | | TjCustomer tjCustomer1 = tjCustomerService.getOne(qw); |
| | |
| | | tjCustomer.setTjType(tjReservation.getTjType()); |
| | | tjCustomerService.save(tjCustomer); |
| | | } |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | }else { |
| | | throw new RuntimeException(); |
| | | } |
| | | |
| | | }else { |
| | | throw new RuntimeException(); |
| | | } |
| | | } |
| | | |
| | |
| | | jcbgd.setZdsj(DateUtil.format(date,"yyyy-MM-dd")); |
| | | jcbgd.setJcbw(""); |
| | | jcbgd.setSqsj(DateUtil.format(date,"yyyy-MM-dd")); |
| | | jcbgd.setLx("1"); |
| | | jcbgd.setCreateTime(date); |
| | | jcbgdService.save(jcbgd); |
| | | jcsqdService.saveLtkjExamJcsqd(xdtgmdjg.getCardId()); |
| | | jcsqdService.saveLtkjExamJcsqdxdt(xdtgmdjg.getCardId()); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | |
| | | @DataSource(value = DataSourceType.MASTER) |
| | | public interface LtkjExamJcbgdMapper extends BaseMapper<LtkjExamJcbgd> { |
| | | |
| | | @Delete ("DELETE FROM ltkj_exam_jcbgd WHERE tjh=#{tmh} ") |
| | | @Delete ("DELETE FROM ltkj_exam_jcbgd WHERE tjh=#{tmh} and lx=0 ") |
| | | void deletedLtkjJcbgdByTjhAndTmh(String tmh); |
| | | |
| | | @Delete ("DELETE FROM ltkj_exam_jcbgd WHERE tjh=#{tjh} and tmh=#{tmh} ") |
| | |
| | | //@DataSource(value = DataSourceType.MASTER) |
| | | public interface LtkjExamJcsqdMapper extends BaseMapper<LtkjExamJcsqd> { |
| | | |
| | | @Select ("SELECT * FROM ltkj_exam_jcsqd a WHERE a.tjh=#{tjh} AND a.tmh=#{tmh} ") |
| | | @Select ("SELECT * FROM ltkj_exam_jcsqd a WHERE a.tjh=#{tjh} AND a.tmh=#{tmh} and a.lx=0 ") |
| | | LtkjExamJcsqd getLtkjJcsqdByTjhAndTmh(@Param("tjh") String tjh,@Param("tmh") String tmh); |
| | | |
| | | @Delete ("DELETE FROM ltkj_exam_jcsqd WHERE tjh=#{tjh}") |
| | | @Delete ("DELETE FROM ltkj_exam_jcsqd WHERE tjh=#{tjh} and lx=0 ") |
| | | void deletedLtkjJcsqdByTjhAndTmh(@Param("tjh")String tjh); |
| | | |
| | | @Delete ("DELETE FROM ltkj_exam_jcsqd WHERE tjh=#{tjh} and tmh=#{tmh}") |
| | |
| | | @Param("page")int page, |
| | | @Param("status")String status); |
| | | |
| | | @Delete ("DELETE FROM ltkj_exam_jcsqd WHERE tjh=#{tjh} and jcxmid = #{xmid}") |
| | | @Delete ("DELETE FROM ltkj_exam_jcsqd WHERE tjh=#{tjh} and jcxmid = #{xmid} and lx=0 ") |
| | | void deletedLtkjJcsqdByTjhAndProId(@Param("tjh") String tjh,@Param("xmid") String xmid); |
| | | |
| | | |
| | | @Insert("INSERT INTO ltkj_exam_jcsqd \n" + |
| | | "SELECT a.tjh,a.tmh,NULL jclx,NULL jczlx,a.shysxm bgys,a.shysdm bgysid,a.sqsj,a.zdsj jgsj, a.xmmc jcxmmc,a.xmdm jcxmid,a.jcbw bw,\n" + |
| | | "a.yxzd jgzt,a.bg_nr jgbx,'1',sysdate()\n" + |
| | | "FROM ltkj_exam_jcbgd a WHERE a.tjh=#{tjh} GROUP BY a.xmmc") |
| | | void saveLtkjExamJcsqdxdt(String tjh); |
| | | } |
| | |
| | | |
| | | void saveLtkjExamJcsqd(String tjh); |
| | | |
| | | void saveLtkjExamJcsqdxdt(String tjh); |
| | | |
| | | AjaxResult getTjJcProByHisCall(String ksmc,String strIn,String brid,int pagecount,int page,String status); |
| | | |
| | | List<LtkjExamJcbgd> queryLtkjExamJcsqdByTjh(String tjh); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void saveLtkjExamJcsqdxdt(String tjh) { |
| | | mapper.saveLtkjExamJcsqdxdt(tjh); |
| | | } |
| | | |
| | | @Override |
| | | public AjaxResult getTjJcProByHisCall(String ksmc,String strIn,String brid,int pagecount,int page,String status) { |
| | | List<Map<String, Object>> tjJcProByHisCall = mapper.getTjJcProByHisCall(ksmc,strIn,brid,pagecount,page,status); |
| | | return AjaxResult.success().put("data",tjJcProByHisCall); |
| | |
| | | private String zdsj; |
| | | private String sqsj; |
| | | private String jcbw; |
| | | private String lx; |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "创建时间") |
| | |
| | | private String jgzt; |
| | | private String jgbx; |
| | | private String jgsj; |
| | | private String lx; |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "创建时间") |