|
|
@ -18,6 +18,9 @@ import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
import static com.api.browser.util.ConditionType.CHECKBOX;
|
|
|
|
import static com.api.browser.util.ConditionType.CHECKBOX;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 保存班次基本信息时处理一下是否24小时制字段的值
|
|
|
|
|
|
|
|
*/
|
|
|
|
@CommandDynamicProxy(target = SaveShiftManagementBaseFormCmd.class )
|
|
|
|
@CommandDynamicProxy(target = SaveShiftManagementBaseFormCmd.class )
|
|
|
|
public class SaveShiftManagementBaseFormCmdIntercept extends AbstractCommandProxy<Map<String,Object>> {
|
|
|
|
public class SaveShiftManagementBaseFormCmdIntercept extends AbstractCommandProxy<Map<String,Object>> {
|
|
|
|
|
|
|
|
|
|
|
@ -42,7 +45,7 @@ public class SaveShiftManagementBaseFormCmdIntercept extends AbstractCommandProx
|
|
|
|
Integer status = Util.getIntValue(Util.null2String(result.get("status")));
|
|
|
|
Integer status = Util.getIntValue(Util.null2String(result.get("status")));
|
|
|
|
basebean.writeLog("status: " + status);
|
|
|
|
basebean.writeLog("status: " + status);
|
|
|
|
|
|
|
|
|
|
|
|
if ( status != 1) {
|
|
|
|
if ( status == 1) {
|
|
|
|
shifMaId = Util.getIntValue(Util.null2String(result.get("id")));
|
|
|
|
shifMaId = Util.getIntValue(Util.null2String(result.get("id")));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
basebean.writeLog("shifMaId: " + shifMaId);
|
|
|
|
basebean.writeLog("shifMaId: " + shifMaId);
|
|
|
@ -56,13 +59,15 @@ public class SaveShiftManagementBaseFormCmdIntercept extends AbstractCommandProx
|
|
|
|
Integer is24HourView = Util.getIntValue(Util.null2String(jsonObj.get("is24HourView")));
|
|
|
|
Integer is24HourView = Util.getIntValue(Util.null2String(jsonObj.get("is24HourView")));
|
|
|
|
basebean.writeLog("is24HourView: " + is24HourView);
|
|
|
|
basebean.writeLog("is24HourView: " + is24HourView);
|
|
|
|
|
|
|
|
|
|
|
|
String syncIs24Sql = "update kq_ShiftManagement set is24HourView = ? where id = ? ";//同步是否24小时制字段值
|
|
|
|
|
|
|
|
if ( is24HourView ==-1 || is24HourView ==0) {//否
|
|
|
|
if ( is24HourView ==-1 || is24HourView ==0) {//否
|
|
|
|
basebean.writeLog("is24HourView do 0 ");
|
|
|
|
basebean.writeLog("is24HourView do 0 ");
|
|
|
|
rs.executeUpdate(syncIs24Sql,0,shifMaId);
|
|
|
|
String syncIs24NoSql = "update kq_ShiftManagement set is24HourView = ? where id = ? ";//同步是否24小时制字段值
|
|
|
|
|
|
|
|
rs.executeUpdate(syncIs24NoSql,0,shifMaId);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
basebean.writeLog("is24HourView do 1 ");
|
|
|
|
basebean.writeLog("is24HourView do 1 ");
|
|
|
|
rs.executeUpdate(syncIs24Sql,1,shifMaId);
|
|
|
|
String syncIs24Sql = "update kq_ShiftManagement set is24HourView = ?,worktime = ? where id = ? ";//同步是否24小时制与worktime字段值
|
|
|
|
|
|
|
|
rs.executeUpdate(syncIs24Sql,1,"1440",shifMaId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|