Commit b036989fc922bbecab6ddf11c0546e2b39c1c9d9

Authored by guzijian
2 parents 792fd4be 1318c253

Merge remote-tracking branch 'origin/dev' into dev

trash-ui/src/views/unit/carInfo/info.vue
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 <el-row :gutter="30"> 9 <el-row :gutter="30">
10 <el-col :span="7"> 10 <el-col :span="7">
11 <el-form-item label="所属公司" prop="companyId"> 11 <el-form-item label="所属公司" prop="companyId">
12 - <el-select v-model="form.companyId" placeholder="请选择所属公司" clearable style="width: 100%;" @change="listDriverByCompany"> 12 + <el-select v-model="form.companyId" placeholder="请选择所属公司" clearable style="width: 100%;" @change="listDriverByCompany" :disabled="form.id != null">
13 <el-option v-for="(item,index) in enterpriseList" :label="item.name" :value="item.id" :key="index"/> 13 <el-option v-for="(item,index) in enterpriseList" :label="item.name" :value="item.id" :key="index"/>
14 </el-select> 14 </el-select>
15 </el-form-item> 15 </el-form-item>
trash-ui/src/views/unit/disposalSite/info.vue
@@ -981,12 +981,14 @@ export default { @@ -981,12 +981,14 @@ export default {
981 this.$alert('左键单击地图添加点,左键双击编辑,右键双击地图结束绘制', '温馨提示', { 981 this.$alert('左键单击地图添加点,左键双击编辑,右键双击地图结束绘制', '温馨提示', {
982 confirmButtonText: '确定', 982 confirmButtonText: '确定',
983 callback: action => { 983 callback: action => {
984 - console.log(this.map)  
985 - let path = this.form.electronicFence.split(";");  
986 - path.map(item=>{  
987 - let arr = item.split(",");  
988 - this.polygonArr.push([arr[0],arr[1]]);  
989 - }); 984 + if(this.form.electronicFence!=null){
  985 + let path = this.form.electronicFence.split(";");
  986 + path.map(item=>{
  987 + let arr = item.split(",");
  988 + this.polygonArr.push([arr[0],arr[1]]);
  989 + });
  990 + }
  991 +
990 } 992 }
991 }); 993 });
992 }, 994 },
trash-ui/src/views/unit/disposalSite/infoEdit.vue
@@ -981,12 +981,13 @@ export default { @@ -981,12 +981,13 @@ export default {
981 this.$alert('左键单击地图添加点,左键双击编辑,右键双击地图结束绘制', '温馨提示', { 981 this.$alert('左键单击地图添加点,左键双击编辑,右键双击地图结束绘制', '温馨提示', {
982 confirmButtonText: '确定', 982 confirmButtonText: '确定',
983 callback: action => { 983 callback: action => {
984 - console.log(this.map)  
985 - let path = this.form.electronicFence.split(";");  
986 - path.map(item=>{  
987 - let arr = item.split(",");  
988 - this.polygonArr.push([arr[0],arr[1]]);  
989 - }); 984 + if(this.form.electronicFence!=null){
  985 + let path = this.form.electronicFence.split(";");
  986 + path.map(item=>{
  987 + let arr = item.split(",");
  988 + this.polygonArr.push([arr[0],arr[1]]);
  989 + });
  990 + }
990 } 991 }
991 }); 992 });
992 }, 993 },
@@ -1022,6 +1023,13 @@ export default { @@ -1022,6 +1023,13 @@ export default {
1022 /** 提交按钮 */ 1023 /** 提交按钮 */
1023 submitForm() { 1024 submitForm() {
1024 this.$refs["form"].validate(valid => { 1025 this.$refs["form"].validate(valid => {
  1026 + if(this.form.validityBeginDate>this.form.validityEndDate){
  1027 + this.$message({
  1028 + message: '有限期开始时间不能大于有限期结束时间!',
  1029 + type: 'warning'
  1030 + });
  1031 + return false;
  1032 + }
1025 if (valid) { 1033 if (valid) {
1026 let formData = new FormData(); 1034 let formData = new FormData();
1027 let form = this.form; 1035 let form = this.form;
trash-ui/src/views/unit/driver/index.vue
@@ -193,6 +193,9 @@ export default { @@ -193,6 +193,9 @@ export default {
193 created() { 193 created() {
194 this.getList(); 194 this.getList();
195 }, 195 },
  196 + watch:{
  197 + '$route.query.driverInfoRefresh':'getList'
  198 + },
196 methods: { 199 methods: {
197 /** 查询驾驶员管理列表 */ 200 /** 查询驾驶员管理列表 */
198 getList() { 201 getList() {
trash-ui/src/views/unit/driver/info.vue
@@ -48,7 +48,7 @@ @@ -48,7 +48,7 @@
48 </el-col> 48 </el-col>
49 <el-col :span="7"> 49 <el-col :span="7">
50 <el-form-item label="所属公司" prop="companyId"> 50 <el-form-item label="所属公司" prop="companyId">
51 - <el-select v-model="form.companyId" placeholder="请选择所属公司" clearable style="width: 100%;"> 51 + <el-select v-model="form.companyId" placeholder="请选择所属公司" clearable style="width: 100%;" :disabled="form.id != null">
52 <el-option v-for="(item,index) in enterpriseList" :label="item.name" :value="item.id" :key="index"/> 52 <el-option v-for="(item,index) in enterpriseList" :label="item.name" :value="item.id" :key="index"/>
53 </el-select> 53 </el-select>
54 </el-form-item> 54 </el-form-item>
@@ -521,6 +521,20 @@ export default { @@ -521,6 +521,20 @@ export default {
521 }); 521 });
522 return false; 522 return false;
523 } 523 }
  524 + if(this.form.professionalQualificationBeginDate>this.form.professionalQualificationEndDate){
  525 + this.$message({
  526 + message: '从业资格证有效期终不能小于从业资格证有效期起!',
  527 + type: 'warning'
  528 + });
  529 + return false;
  530 + }
  531 + if(this.form.drivingLicenceBeginDate>this.form.drivingLicenceEndDate){
  532 + this.$message({
  533 + message: '驾驶证有效期终不能小于驾驶证有效期起!',
  534 + type: 'warning'
  535 + });
  536 + return false;
  537 + }
524 if (valid) { 538 if (valid) {
525 let formData = new FormData(); 539 let formData = new FormData();
526 let form = this.form; 540 let form = this.form;
trash-unit/src/main/java/com/trash/carInfo/service/impl/CarInfoServiceImpl.java
@@ -212,6 +212,8 @@ public class CarInfoServiceImpl implements ICarInfoService @@ -212,6 +212,8 @@ public class CarInfoServiceImpl implements ICarInfoService
212 public String removeSemicolon(String str){ 212 public String removeSemicolon(String str){
213 if (str.startsWith(";")) 213 if (str.startsWith(";"))
214 str = str.substring(1); 214 str = str.substring(1);
  215 + if (str.equals(""))
  216 + str = null;
215 return str; 217 return str;
216 } 218 }
217 } 219 }
trash-unit/src/main/java/com/trash/disposalSite/service/impl/DisposalSiteServiceImpl.java
@@ -199,6 +199,8 @@ public class DisposalSiteServiceImpl implements IDisposalSiteService { @@ -199,6 +199,8 @@ public class DisposalSiteServiceImpl implements IDisposalSiteService {
199 public String removeSemicolon(String str){ 199 public String removeSemicolon(String str){
200 if (str.startsWith(";")) 200 if (str.startsWith(";"))
201 str = str.substring(1); 201 str = str.substring(1);
  202 + if (str.equals(""))
  203 + str = null;
202 return str; 204 return str;
203 } 205 }
204 } 206 }
trash-unit/src/main/java/com/trash/driver/service/impl/DriverServiceImpl.java
@@ -177,6 +177,8 @@ public class DriverServiceImpl implements IDriverService @@ -177,6 +177,8 @@ public class DriverServiceImpl implements IDriverService
177 public String removeSemicolon(String str){ 177 public String removeSemicolon(String str){
178 if (str.startsWith(";")) 178 if (str.startsWith(";"))
179 str = str.substring(1); 179 str = str.substring(1);
  180 + if (str.equals(""))
  181 + str = null;
180 return str; 182 return str;
181 } 183 }
182 } 184 }
trash-unit/src/main/java/com/trash/enterprise/service/impl/TransportationEnterpriseServiceImpl.java
@@ -172,6 +172,8 @@ public class TransportationEnterpriseServiceImpl implements ITransportationEnter @@ -172,6 +172,8 @@ public class TransportationEnterpriseServiceImpl implements ITransportationEnter
172 public String removeSemicolon(String str){ 172 public String removeSemicolon(String str){
173 if (str.startsWith(";")) 173 if (str.startsWith(";"))
174 str = str.substring(1); 174 str = str.substring(1);
  175 + if (str.equals(""))
  176 + str = null;
175 return str; 177 return str;
176 } 178 }
177 } 179 }
trash-unit/src/main/resources/mapper/unit/DisposalSiteMapper.xml
@@ -194,7 +194,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -194,7 +194,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
194 <update id="updateDisposalSite" parameterType="DisposalSite"> 194 <update id="updateDisposalSite" parameterType="DisposalSite">
195 update disposal_site 195 update disposal_site
196 <trim prefix="SET" suffixOverrides=","> 196 <trim prefix="SET" suffixOverrides=",">
197 - <if test="name != null">name = #{name},</if> 197 + <if test="name != null">`name` = #{name},</if>
198 <if test="certificateNumber != null">certificate_number = #{certificateNumber},</if> 198 <if test="certificateNumber != null">certificate_number = #{certificateNumber},</if>
199 <if test="address != null">address = #{address},</if> 199 <if test="address != null">address = #{address},</if>
200 <if test="engineeringProperty != null">engineering_property = #{engineeringProperty},</if> 200 <if test="engineeringProperty != null">engineering_property = #{engineeringProperty},</if>
@@ -228,9 +228,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -228,9 +228,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
228 <if test="authorization != null">authorization = #{authorization},</if> 228 <if test="authorization != null">authorization = #{authorization},</if>
229 <if test="otherInformation != null">other_information = #{otherInformation},</if> 229 <if test="otherInformation != null">other_information = #{otherInformation},</if>
230 <if test="companyIds != null">company_ids = #{companyIds},</if> 230 <if test="companyIds != null">company_ids = #{companyIds},</if>
231 - <if test="status != null">status = #{status},</if>  
232 - <if test="createTime != null">create_time = #{createTime},</if>  
233 - <if test="createBy != null">create_by = #{createBy},</if> 231 + <if test="status != null">`status` = #{status},</if>
234 <if test="updateTime != null">update_time = #{updateTime},</if> 232 <if test="updateTime != null">update_time = #{updateTime},</if>
235 <if test="updateBy != null">update_by = #{updateBy},</if> 233 <if test="updateBy != null">update_by = #{updateBy},</if>
236 <if test="qrCode != null">qr_code = #{qrCode},</if> 234 <if test="qrCode != null">qr_code = #{qrCode},</if>
trash-unit/src/main/resources/mapper/unit/TransportationEnterpriseMapper.xml
@@ -60,7 +60,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -60,7 +60,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
60 <if test="safetyManagerName != null and safetyManagerName != ''"> and safety_manager_name like concat('%', #{safetyManagerName}, '%')</if> 60 <if test="safetyManagerName != null and safetyManagerName != ''"> and safety_manager_name like concat('%', #{safetyManagerName}, '%')</if>
61 <if test="safetyManagerPhone != null and safetyManagerPhone != ''"> and safety_manager_phone = #{safetyManagerPhone}</if> 61 <if test="safetyManagerPhone != null and safetyManagerPhone != ''"> and safety_manager_phone = #{safetyManagerPhone}</if>
62 <if test="socialUniformCreditCodeNumber != null and socialUniformCreditCodeNumber != ''"> and social_uniform_credit_code_number = #{socialUniformCreditCodeNumber}</if> 62 <if test="socialUniformCreditCodeNumber != null and socialUniformCreditCodeNumber != ''"> and social_uniform_credit_code_number = #{socialUniformCreditCodeNumber}</if>
63 - <if test="legalRepresentative != null and legalRepresentative != ''"> and legal_representative = #{legalRepresentative}</if> 63 + <if test="legalRepresentative != null and legalRepresentative != ''"> and legal_representative like concat('%',#{legalRepresentative},'%')</if>
64 <if test="legalRepresentativePhone != null and legalRepresentativePhone != ''"> and legal_representative_phone = #{legalRepresentativePhone}</if> 64 <if test="legalRepresentativePhone != null and legalRepresentativePhone != ''"> and legal_representative_phone = #{legalRepresentativePhone}</if>
65 <if test="safetyPeopleName != null and safetyPeopleName != ''"> and safety_people_name like concat('%', #{safetyPeopleName}, '%')</if> 65 <if test="safetyPeopleName != null and safetyPeopleName != ''"> and safety_people_name like concat('%', #{safetyPeopleName}, '%')</if>
66 <if test="transportPermission != null and transportPermission != ''"> and transport_permission = #{transportPermission}</if> 66 <if test="transportPermission != null and transportPermission != ''"> and transport_permission = #{transportPermission}</if>
trash-workFlow/src/main/java/com/trash/casefile/kafka/Consumer.java
@@ -40,7 +40,7 @@ public class Consumer { @@ -40,7 +40,7 @@ public class Consumer {
40 @Autowired 40 @Autowired
41 private IViolationWarningInformationService violationWarningInformationService; 41 private IViolationWarningInformationService violationWarningInformationService;
42 42
43 -// @KafkaListener(topics = "record_process_alarm") 43 + @KafkaListener(topics = "record_process_alarm")
44 public void consume(ConsumerRecord<?, ?> record, Acknowledgment ack) throws InterruptedException, IOException { 44 public void consume(ConsumerRecord<?, ?> record, Acknowledgment ack) throws InterruptedException, IOException {
45 log.info("kafka消费数据成功,offset:"+ record.offset() +",data:" + record.value()); 45 log.info("kafka消费数据成功,offset:"+ record.offset() +",data:" + record.value());
46 String id = insertKafkaCompensation(record.value().toString()); 46 String id = insertKafkaCompensation(record.value().toString());