diff --git a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/mapper/DevInfoMapper.java b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/mapper/DevInfoMapper.java index 60fb3a8..4c95f4d 100644 --- a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/mapper/DevInfoMapper.java +++ b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/mapper/DevInfoMapper.java @@ -278,8 +278,6 @@ public interface DevInfoMapper { List getDemandUnit(DevInfoVo devInfoVo); - int updateTypeLeasePrice(DevInfo devInfo); - Integer getTotalEquipment(DevInfoReq devInfoReq); BigDecimal getTotalValue(DevInfoReq devInfoReq); diff --git a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/service/impl/DevInfoServiceImpl.java b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/service/impl/DevInfoServiceImpl.java index 20e9ae6..791ae5d 100644 --- a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/service/impl/DevInfoServiceImpl.java +++ b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/service/impl/DevInfoServiceImpl.java @@ -614,7 +614,6 @@ public class DevInfoServiceImpl implements DevInfoService { String identifyCode = tableList.get(0).getIdentifyCode(); devInfo.setIdentifyCode(identifyCode); int i = devInfoMapper.updateDevInfo(devInfo); - devInfoMapper.updateTypeLeasePrice(devInfo); if (i > 0) { BmFileInfo bmFileInfo = new BmFileInfo() diff --git a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/bookcar/BookCarMapper.xml b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/bookcar/BookCarMapper.xml index b110f31..f87bacc 100644 --- a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/bookcar/BookCarMapper.xml +++ b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/bookcar/BookCarMapper.xml @@ -26,18 +26,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" d.ma_id as maId, d.code as code, d.device_name as deviceName, - d.device_weight as deviceWeight, d.device_count as deviceCount, d.type_id as typeId, d.ma_status as maStatus, d.brand as brand, - d.model_name as modelName, mt.type_name as typeName, mt.manage_type as manageType, d.production_date as productionDate, d.working_hours as workingHours, d.serial_number as serialNumber, - mt.lease_price as dayLeasePrice, d.person as person, d.person_phone as personPhone, c.company_name as companyName, @@ -47,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" bcd.order_user as orderUser, bcd.address as address FROM ma_dev_info d - LEFT JOIN bm_company_info c ON d.own_co = c.company_id + LEFT JOIN bm_company_info c ON d.on_company = c.company_id LEFT JOIN book_car_detail bcd ON d.ma_id = bcd.ma_id LEFT JOIN ma_type mt ON d.type_id = mt.type_id and mt.del_flag = '0' where d.is_active = '1' and bcd.order_status = '0' diff --git a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/cityScreen/CityScreenMapper.xml b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/cityScreen/CityScreenMapper.xml index f6ebe46..7d2952c 100644 --- a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/cityScreen/CityScreenMapper.xml +++ b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/cityScreen/CityScreenMapper.xml @@ -10,7 +10,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" IFNULL(sum( buy_price * device_count ),0) AS totalValue FROM ma_dev_info - WHERE is_active = 1 and own_co = #{companyId} + WHERE is_active = 1 and on_company = #{companyId} @@ -109,7 +109,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" count(DISTINCT mdi.ma_id) from ma_dev_info mdi left join ma_type_view mtv on mtv.typeId = mdi.type_id - where mdi.is_active = 1 and mdi.own_co = #{companyId} and mdi.change_status != 4 + where mdi.is_active = 1 and mdi.on_company = #{companyId} and mdi.change_status != 4 select dev.ma_id devId,dev.device_name devName,dev.code devCode,dev.json_data,DATE(dev.production_date ) productDate ,dev.buy_price buyPrice ,dev.brand , mdq.next_check_time nextDate,mt.typeId, mt.unit_name unit,mt.maintenance_alarm_day , - mt.lease_price,mt.proType,mt.level,mt.mainGx,mt.childGx,mt.devCategory ,mt.devSubcategory ,mt.devName, + mt.proType,mt.level,mt.mainGx,mt.childGx,mt.devCategory ,mt.devSubcategory ,mt.devName, mt.devModel ,bci.company_name compName,bci.operate_address orgName,IFNULL(pro.pro_name,'-') proName, dev.on_project proId,dev.change_status AS status FROM ma_dev_info dev - left join bm_company_info bci on bci.company_id=dev.own_co + left join bm_company_info bci on bci.company_id=dev.on_company left join ma_type_view mt on mt.typeId=dev.type_id LEFT JOIN (SELECT max( next_check_time) next_check_time,ma_id from ma_dev_qc GROUP BY ma_id ) mdq on dev.ma_id=mdq.ma_id left join jj_sing_project pro on pro.pro_code=dev.on_project @@ -142,7 +142,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -155,12 +155,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SELECT @@ -1055,9 +1008,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select sd.dept_name as com_name,count(mdi.ma_id) as device_count from ma_dev_info mdi - LEFT JOIN sys_dept sd on sd.dept_id=mdi.own_co + LEFT JOIN sys_dept sd on sd.dept_id=mdi.on_company where mdi.ma_status in (2,3) - group by mdi.own_co + group by mdi.on_company order by device_count desc @@ -1067,23 +1020,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" d.CODE AS code, d.identify_code AS identifyCode, d.device_name AS deviceName, - d.device_weight AS deviceWeight, d.device_count AS deviceCount, d.type_id AS typeId, mt4.type_name AS typeName, mt4.unit_name AS unitName, d.ma_status AS maStatus, d.brand AS brand, - d.model_name AS modelName, d.production_date AS productionDate, d.working_hours AS workingHours, - d.serial_number AS serialNumber, - mt4.lease_price AS dayLeasePrice, d.person AS person, d.person_phone AS personPhone, d.create_time AS createTime, d.update_time AS updateTime, - d.own_co AS companyId, + d.on_company AS companyId, sd.dept_name AS companyName, c.operate_address AS operateAddress, mt3.type_id AS thirdId, @@ -1094,7 +1043,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" mt1.type_name AS firstName FROM ma_dev_info d - LEFT JOIN sys_dept sd ON d.own_co = sd.dept_id + LEFT JOIN sys_dept sd ON d.on_company = sd.dept_id LEFT JOIN bm_company_info c ON sd.dept_id = c.company_id LEFT JOIN ma_type mt4 ON mt4.type_id = d.type_id AND mt4.del_flag = '0' @@ -1136,19 +1085,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" d.identify_code as identifyCode, d.device_name as deviceName, d.device_count as deviceCount, - d.device_weight as deviceWeight, d.type_id as typeId, mt4.type_name as typeName, d.ma_status as maStatus, d.brand as brand, - d.model_name as modelName, d.production_date as productionDate, d.working_hours as workingHours, - d.serial_number as serialNumber, - mt4.lease_price as dayLeasePrice, d.person as person, d.person_phone as personPhone, - d.own_co as companyId, + d.on_company as companyId, d.total_lease_day as totalLeaseDay, d.total_up_day as totalUpDay, sd.dept_name as companyName, @@ -1162,7 +1107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" mt1.type_name as firstName FROM ma_dev_info d - LEFT JOIN sys_dept sd ON d.own_co = sd.dept_id + LEFT JOIN sys_dept sd ON d.on_company = sd.dept_id LEFT JOIN bm_company_info c ON sd.dept_id = c.company_id LEFT JOIN ma_type mt4 ON mt4.type_id = d.type_id and mt4.del_flag = '0' LEFT JOIN ma_type mt3 ON mt3.type_id = mt4.parent_id and mt3.del_flag = '0' @@ -1180,14 +1125,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SELECT md.ma_id AS maId, COUNT( md.order_id ) AS orderNum , - mdi.own_co AS companyId, + mdi.on_company AS companyId, md.order_id AS orderId, sd.dept_name AS companyName FROM ma_order_details md LEFT JOIN ma_dev_info mdi on md.ma_id = mdi.ma_id - LEFT JOIN sys_dept sd on mdi.own_co = sd.dept_id - WHERE md.order_status != 0 and md.order_status != 99 and mdi.own_co =#{companyId} + LEFT JOIN sys_dept sd on mdi.on_company = sd.dept_id + WHERE md.order_status != 0 and md.order_status != 99 and mdi.on_company =#{companyId} GROUP BY md.order_id @@ -1211,12 +1156,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" d.dept_id = #{companyId} AND d.del_flag = '0' + + select count(1) from ma_dev_info where is_active ='1' - AND own_co = #{ownCo} + AND on_company = #{ownCo} AND change_status = #{changeStatus} @@ -1415,7 +1360,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" diff --git a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/equipment/SysDeptMapper.xml b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/equipment/SysDeptMapper.xml index 6de5b37..23eed3d 100644 --- a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/equipment/SysDeptMapper.xml +++ b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/equipment/SysDeptMapper.xml @@ -255,7 +255,7 @@ diff --git a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/home/MaTypeInfoMapper.xml b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/home/MaTypeInfoMapper.xml index 04b6087..9b24ac3 100644 --- a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/home/MaTypeInfoMapper.xml +++ b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/home/MaTypeInfoMapper.xml @@ -19,21 +19,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where del_flag = '0' - @@ -704,10 +704,10 @@ LEFT JOIN ma_type mt1 ON mt1.type_id = mt2.parent_id AND mt1.del_flag = '0' LEFT JOIN sys_user su ON mdi.creator = su.user_id - LEFT JOIN sys_dept sd ON sd.dept_id = mdi.own_co + LEFT JOIN sys_dept sd ON sd.dept_id = mdi.on_company WHERE mdi.is_active = '1' AND mdi.ma_status IN (1, 2, 3) - AND mdi.own_co = #{ownCo} + AND mdi.on_company = #{ownCo} diff --git a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/owner/OwnerMapper.xml b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/owner/OwnerMapper.xml index 68f5bcb..94a0f88 100644 --- a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/owner/OwnerMapper.xml +++ b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/owner/OwnerMapper.xml @@ -90,7 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"